package com.noyes4j.customer.mapper;

import com.noyes4j.customer.domain.SysCustomer;

import java.util.List;

/**
 * @ClassName SysCustomerMapper
 * @Description: TODO
 * @Author zhaoweiqin
 * @Date 2021/1/29
 * @Version V1.0
 **/
public interface SysCustomerMapper {
    /**
     * 查询客户
     *
     * @param id 客户ID
     * @return 客户
     */
    public SysCustomer selectSysCustomerById(Long id);

    /**
     * 查询客户列表
     *
     * @param sysCustomer 客户
     * @return 客户集合
     */
    public List<SysCustomer> selectSysCustomerList(SysCustomer sysCustomer);

    /**
     * 新增客户
     *
     * @param sysCustomer 客户
     * @return 结果
     */
    public int insertSysCustomer(SysCustomer sysCustomer);

    /**
     * 修改客户
     *
     * @param sysCustomer 客户
     * @return 结果
     */
    public int updateSysCustomer(SysCustomer sysCustomer);

    /**
     * 删除客户
     *
     * @param id 客户ID
     * @return 结果
     */
    public int deleteSysCustomerById(Long id);

    /**
     * 批量删除客户
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysCustomerByIds(String[] ids);

}
